import apiUrl from "../base";
import axios from '@/libs/axios';
const riskElimination = {
  //列表
  getRiskOrderDestroyList(prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/list`,prames)
  },
  //统计风险数量
  getRiskOrderDestroystatRiskCount(prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/statRiskCount`,prames)
  },
  //为消号总数
  getRiskOrderDestroycountNoDestroy(prames) {
    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/unreadCount `,'')
  },
  //为消号总数
  getRiskOrderDestroyhasRead(prames) {
    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/hasRead`,'')
  },
  //保存销号--审批人--签发人
  getApprovalConfigsaveForDestroyNumber(prames) {
    return axios.post(`${apiUrl.risk}v1/ApprovalConfig/saveForDestroyNumber`,prames)
  },
  //销号--审批人--签发人回显
  getApprovalConfiglistForDestroyNumber(prames) {
    return axios.get(`${apiUrl.risk}v1/ApprovalConfig/listForDestroyNumber`,'')
  },
  //销号配置的提醒类型
  getDestroyNumberRemindTypeList(prames) {
    return axios.get(`${apiUrl.risk}v1/DestroyNumberRemindType/list`,'')
  },
  //销号
  getRiskOrderDestroyoperate(prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/operate`,prames)
  },
  //新增销号
  getRiskOrderDestroydestroyCreate (prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/destroyCreate `,prames)
  },
  //撤销销号
  getRiskOrderDestroydestroyCancel (prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/destroyCancel `,prames)
  },
  //审核销号
  getRiskOrderDestroydestroyApproval (prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/destroyApproval `,prames)
  },
  //签发销号
  getRiskOrderDestroydestroyIssue  (prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/destroyIssue  `,prames)
  },
  //新增详情
  getRiskOrderDestroydetail(prames) {
    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/detail/${prames}`,'')
  },
  //修改进度
  getRiskOrderDestroyupdateProgress(prames) {
    return axios.post(`${apiUrl.risk}v1/RiskOrderDestroy/updateProgress`,prames)
  },
  //审批进度
  getRiskOrderDestroygetProcess(prames) {
    return axios.get(`${apiUrl.risk}v1/RiskOrderDestroy/getProcess?id=${prames}`,'')
  },

}
export default riskElimination
